package com.zh.work.entity.branch;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * code is far away from bug with the animal protecting
 * ┏┓　　　┏┓
 * ┏┛┻━━━┛┻┓
 * ┃　　　　　　　┃
 * ┃　　　━　　　┃
 * ┃　┳┛　┗┳　┃
 * ┃　　　　　　　┃
 * ┃　　　┻　　　┃
 * ┃　　　　　　　┃
 * ┗━┓　　　┏━┛
 * 　　┃　　　┃神兽保佑
 * 　　┃　　　┃代码无BUG！
 * 　　┃　　　┗━━━┓
 * 　　┃　　　　　　　┣┓
 * 　　┃　　　　　　　┏┛
 * 　　┗┓┓┏━┳┓┏┛
 * 　　　┃┫┫　┃┫┫
 * 　　　┗┻┛　┗┻┛
 *
 * @Description: 机构管理角色实体类
 * @Author: Li.HuiNeng
 * @Create in: 2019/8/26
 * @Version: 1.0.1
 */
@ApiModel(value = "BranchRoleEntity", description = "机构管理角色实体类")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("branch_roler")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BranchRoleEntity extends Model<BranchRoleEntity> {
    private static final long serialVersionUID = -1372567619543103821L;
    @ApiModelProperty(value = "主键", name = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "逻辑删除字段", name = "deleted")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "分公司编号", name = "branchNo")
    @TableField(value = "branchno")
    private String branchNo;

    @ApiModelProperty(value = "角色名称", name = "rolerName")
    @TableField(value = "roler_name")
    private String rolerName;

    @ApiModelProperty(value = "角色说明", name = "rolerMemo")
    @TableField(value = "roler_memo")
    private String rolerMemo;

    @ApiModelProperty(value = "角色权限", name = "rolerAuth")
    @TableField(value = "roler_auth")
    private String rolerAuth;

}
